package com.atguigu.mediator2;

/**
 * 抽象同事类
 */
public abstract class Colleague {
	
	protected Mediator mediator;
	
	private String msg;

	/**
	 * 引进 中介者类
	 */
	public void setMediator(Mediator mediator) {
		this.mediator = mediator;
	}

	public abstract void receive(String msg);

	public abstract void send(String msg);
	
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
